package com.threeti.jiayusms.domain.model;

import com.threeti.jiayusms.framework.domain.support.DefaultCustomKeyDomainEntity;

/** 通信规则 */
public class CommunicationRule extends DefaultCustomKeyDomainEntity {
	private int sendCount;
	private long sendInterval;
	
	private String description;

	public CommunicationRule(String customId, int sendCount, long sendInterval) {
		this.setCustomId(customId);		
		this.sendCount = sendCount;
		this.sendInterval = sendInterval;
	}

	public CommunicationRule(String customId, int sendCount, long sendInterval, String description) {
		this.setCustomId(customId);
		this.sendCount = sendCount;
		this.sendInterval = sendInterval;
		this.description = description;
	}

	public int getSendCount() {
		return sendCount;
	}

	public void setSendCount(int sendCount) {
		this.sendCount = sendCount;
	}

	public long getSendInterval() {
		return sendInterval;
	}

	public void setSendInterval(long sendInterval) {
		this.sendInterval = sendInterval;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public CommunicationRule() {		
	}
}
